<template lang="pug">
  div
    el-card.affairs(:bodyStyle="{padding: '30px'}" shadow="never" style="border: none" v-if="$route.path === '/operative/dailyAffairs'")
      el-row(:gutter="24")
        el-col(:span="12")
          span 巡检对象
          el-link(type="primary" @click="$router.push('/operative/dailyAffairs/setting')") 设置
        el-col.tr(:span="12")
          <!--el-button.gradientVertical(size="large" round @click="testSendVisible = true") 巡检发卡-->
          //- el-button.gradientVertical(size="large" round @click="testListVisible = true") 巡检对象列表
      send-drawer(:visible.sync="testSendVisible")
    router-view(v-else)
</template>
<script>
import SendDrawer from './components/send'

export default {
  components: {
    SendDrawer
  },
  data () {
    return {
      loading: false,
      setVisible: false,
      testSendVisible: false,
      testListVisible: false
    }
  },
  created () {
    console.log(this.$route)
    if (this.$route.path === '/operative/dailyAffairs') {
      this.$router.push('/operative/dailyAffairs/setting')
    }
  }
}
</script>
<style lang="scss" scoped>
</style>
